/*
 * Copyright 2022-2023 the original author(https://github.com/wj596)
 * 
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * </p>
 */
package org.jsets.fastboot.flowable.model.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.ToString;

/**
 * 流程实例
 *
 * @author wangjie (https://github.com/wj596)
 * @date 2021.05.07 21:49
 */
@Data
@ToString(callSuper = true)
@ApiModel(description = "流程实例")
public class FlowInstance implements Serializable {

	private static final long serialVersionUID = 1L;

    String id;//实例主键
    String name;//流程名称
    String description;//流程备注
    String businessKey;//业务KEY
    String processDefinitionId;//流程定义主键
    String processDefinitionName;//流程定义名称
    String processDefinitionKey;//流程定义KEY
    Integer processDefinitionVersion;//流程定义版本
    String deploymentId;//流程部署主键
    String startUserId;//流程发起人
    Date startTime;//流程发起时间
    Date endTime;//流程办结时间
    Long durationInMillis;//流程实例持续时间
    String endActivityId;//流程的结束事件
    String startActivityId;////流程的启动事件
    String deleteReason;//删除原因
    String superProcessInstanceId;//上级实例
    String tenantId;//租户主键
    String callbackId;//回调主键
    String callbackType;//回调类型
    String referenceId;//引用主键
    String referenceType;//引用类型
    String propagatedStageInstanceId;//阶段计划项实例id
    List<FlowTask> currentTasks;
}